import { get, post, del, put } from "../http";

// 创建广告类型
export const createAbType = (data) =>
  post('/cms/ad-type/create', data)
// 修改广告类型
export const updateAbType = (data) =>
  put('/cms/ad-type/update', data)
// 根据id查询
export const findByIdAbType = (id) =>
  get(`/cms/ad-type/findById/${id}`)
// 按照条件查询全部
export const findAllAbType = (current, size) =>
  get(`/cms/ad-type/findByCondition/${current}/${size}`)
// 删除广告类型
export const delAbType = (id) =>
  del(`/cms/ad-type/delete/${id}`)
// 查询全部
export const getListAbType = (id) =>
  get(`/cms/ad-type/findAll`)



